/**
 * Created by majunpeng on 2017/3/10.
 */
function clickTestOne(){
    layer.alert('见到你真的很高兴', {icon: 6})
}

function clickTestTwo() {
    layer.msg('你确定你很帅么？', {
        time: 0, //不自动关闭
        btn: ['必须啊', '丑到爆'],
        yes: function(index){
            layer.close(index);
            layer.msg('谢谢 O.o', {
                icon: 6,
                btn: ['嗷','嗷','嗷']
            });
        }
    });
}

function clickTestThree() {
    layer.msg('这是最常用的吧');
}

function clickTestFour(){
    layer.msg('不开心。。', {icon: 5});
}

function clickTestFive() {
    layer.msg('玩命卖萌中', function(){
    });
}

/*页面层自定义*/
function clickTestSix() {
    layer.open({
        type: 1,
        title: false,
        closeBtn: 0,
        shadeClose: true,
        skin: 'mineClass',
        content: '<h2>自定义</h2>'
    });
}

function clickTestSeven() {
    layer.open({
        type: 2,
        area: ['700px', '530px'],
        fixed: false, //不固定
        maxmin: true,
        content: 'testIFrame.html'
    });
}

function clickTestEight() {
    layer.load();
    setTimeout(function(){
        layer.closeAll('loading');
    }, 1500);
}

function clickTestNine() {
    layer.load(1);
    setTimeout(function(){
        layer.closeAll('loading');
    }, 1500);
}

function clickTestTen() {
    layer.load(2);
    setTimeout(function(){
        layer.closeAll('loading');
    }, 1500);
}

function clickTestEleven() {
    layer.msg('加载中', {
        icon: 16
        ,shade: 0.01
    });
}

/*tips-上*/
function clickTestTwelve() {
    layer.tips('上', '#tips-up', {
        tips: [1, '#0FA6D8'] //还可配置颜色
    });
}

/*tips-右*/
function clickTestThirteen() {
    layer.tips('右', '#tips-right', {
        tips: [2, '#0FA6D8'] //还可配置颜色
    });
}

/*tips-下*/
function clickTestFourteen() {
    layer.tips('下', '#tips-down', {
        tips: [3, '#0FA6D8'] //还可配置颜色
    });
}

/*tips-左*/
function clickTestFifteen() {
    layer.tips('左', '#tips-left', {
        tips: [4, '#0FA6D8'] //还可配置颜色
    });
}

/*默认prompt*/
function clickTestSixteen() {
    layer.prompt(function(val, index){
        layer.msg('得到了'+val);
        layer.close(index);
    });
}

/*弹窗即全屏*/
function clickTestSeventeen() {
    var index = layer.open({
        type: 2,
        content: 'testIFrame.html',
        area: ['320px', '195px'],
        maxmin: true
    });
    layer.full(index);
}

/*正上方*/
function clickTestEighteen() {
    layer.msg('灵活运用offset', {
        offset: 't',
        anim: 6
    });
}

